#import "CYLevel.h"
@implementation CYLevel
-(void)getViewType:(NSString *)type AndLevel:(NSString *)level
{
    [self setImage:IMAGE_NAMED(@"mine_level_01") forState:UIControlStateNormal];
    if([type isEqualToString:@"0"])
    {
    }
    else if([type isEqualToString:@"1"])
    {
        [self setImage:IMAGE_NAMED(@"mine_level_01") forState:UIControlStateNormal];
    }
    else if([type isEqualToString:@"2"])
    {
        [self setImage:IMAGE_NAMED(@"mine_level_04") forState:UIControlStateNormal];
    }
    [self setTitle:level forState:UIControlStateNormal];
    self.spacingBetweenImageAndTitle = 1;
    [self setTintColor:MainColor];
    self.ghostColor = MainColor;
    self.contentEdgeInsets =  UIEdgeInsetsMake(2, 2, 2, 2);
    self.contentMode = UIViewContentModeScaleAspectFill;
}
@end
